package com.situ.entity;

import com.alibaba.fastjson.JSONObject;

import java.util.*;
import java.time.*;

/**
 * SY_Area实体类
 *
 * @author
 */
public class SyArea {
    /***/
    private Object id;
    /***/
    private String AreaName;
    /***/
    private String Remark;
    /***/
    private Integer Disabled;

    /**
     * 实例化
     */
    public SyArea() {
        super();
    }

    /**
     * 实例化
     *
     * @param obj
     */
    public SyArea(JSONObject obj) {
        this();
        this.setId(obj.get("id"));
        if (obj.get("AreaName") instanceof String) {
            this.setAreaName((String) obj.get("AreaName"));
        }
        if (obj.get("Remark") instanceof String) {
            this.setRemark((String) obj.get("Remark"));
        }
        if (obj.get("Disabled") instanceof Number) {
            this.setDisabled(((Number) obj.get("Disabled")).intValue());
        }
    }

    /**
     * 将当前对象转换为JsonObject
     *
     * @return
     */
    public JSONObject toJson() {
        JSONObject result = new JSONObject();
        if (this.getId() != null) {
            result.put("id", this.getId());
        }
        if (this.getAreaName() != null) {
            result.put("AreaName", this.getAreaName());
        }
        if (this.getRemark() != null) {
            result.put("Remark", this.getRemark());
        }
        if (this.getDisabled() != null) {
            result.put("Disabled", this.getDisabled());
        }
        return result;
    }


    /**
     * 获取id
     *
     * @return
     */
    public Object getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 获取AreaName
     *
     * @return
     */
    public String getAreaName() {
        return AreaName;
    }

    /**
     * 设置AreaName
     *
     * @param AreaName
     */
    public void setAreaName(String AreaName) {
        this.AreaName = AreaName;
    }

    /**
     * 获取Remark
     *
     * @return
     */
    public String getRemark() {
        return Remark;
    }

    /**
     * 设置Remark
     *
     * @param Remark
     */
    public void setRemark(String Remark) {
        this.Remark = Remark;
    }

    /**
     * 获取Disabled
     *
     * @return
     */
    public Integer getDisabled() {
        return Disabled;
    }

    /**
     * 设置Disabled
     *
     * @param Disabled
     */
    public void setDisabled(Integer Disabled) {
        this.Disabled = Disabled;
    }

    @Override
    public String toString() {
        return "SyArea [id=" + id + " , AreaName=" + AreaName + " , Remark=" + Remark + " , Disabled=" + Disabled + "  ]";

    }


}
